import { BaseResponseOperator, BaseResponse } from "@app/types/response"

/**
 * @name  接口返回值
 * @description 包括code，data，msg，operator
 * @param ResponseBody
 * @author yu
 */
export default class ResponseBody implements BaseResponse {
  code: number;
  data: any;
  msg: string | undefined;
  operator: BaseResponseOperator | undefined;
  constructor(prop: BaseResponse) {
    this.code = prop.code;
    this.data = prop.data;
    this.msg = prop.msg;
    this.operator = prop.operator;
  }
}
